package.path = [[/usr/local/Cellar/openresty/1.19.9.1_2/nginx/lua_dir/?.lua;]] .. package.path

--local lfs = require "lfs"

--local fileLib = dofile("fileLib.lua")
local fileLib = require("fileLib")

ngx.say("ngx.var.log_dir: ", ngx.var.log_dir, "<br/>")

ngx.say("this lua index page ! 12312356", "<br/>")

--ngx.say("this lua index page ! ====== ", lfs._VERSION, "<br/>")

ngx.say("this lua index page ! ====== ", "<br/>")

local breakSocketHandle,debugXpCall = require("LuaDebugOpenrestyJit")("localhost", 8888)

local folderPath = ngx.var.log_dir
local fileList = fileLib.getFileList(folderPath)

local newPath = ""

for i = 1, #fileList do
    newPath = folderPath .. "/" .. fileList[i]

    ngx.say("filePath: ", newPath, "<br/>")
end
